﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    public partial class TPalletMoveRecord
    {
        /// <summary>
        /// 托盘移动记录Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public int RelatedOrderDetailId { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public int BillType { get; set; }
        public int? BusinessType { get; set; }
        /// <summary>
        /// 垛号
        /// </summary>
        public string PalletBarcode { get; set; }
        /// <summary>
        /// 移位指令Id
        /// </summary>
        public int MoveInstructId { get; set; }
        /// <summary>
        /// 回原储位指令Id
        /// </summary>
        public int? BackInstructId { get; set; }
        /// <summary>
        /// 组垛Id
        /// </summary>
        public int? StackingStorageId { get; set; }
        /// <summary>
        /// 库存Id
        /// </summary>
        public int InventoryId { get; set; }
        /// <summary>
        /// 原储位Id
        /// </summary>
        public int FromCellId { get; set; }
        /// <summary>
        /// 原储位编码
        /// </summary>
        public string FromCellCode { get; set; }
        /// <summary>
        /// 原储位名称
        /// </summary>
        public string FromCellName { get; set; }
        /// <summary>
        /// 原储位排号
        /// </summary>
        public int FromCellLineNo { get; set; }
        /// <summary>
        /// 原储位层号
        /// </summary>
        public int FromCellLayerNo { get; set; }
        /// <summary>
        /// 原储位列号
        /// </summary>
        public int FromCellColumnNo { get; set; }
        /// <summary>
        /// 原储位所在深度
        /// </summary>
        public int FromCellDepthIndex { get; set; }
        /// <summary>
        /// 转移储位Id
        /// </summary>
        public int MoveToCellId { get; set; }
        /// <summary>
        /// 转移储位编码
        /// </summary>
        public string MoveToCellCode { get; set; }
        /// <summary>
        /// 转移储位名称
        /// </summary>
        public string MoveToCellName { get; set; }
        /// <summary>
        /// 转移储位排号
        /// </summary>
        public int MoveToCellLineNo { get; set; }
        /// <summary>
        /// 转移储位层号
        /// </summary>
        public int MoveToCellLayerNo { get; set; }
        /// <summary>
        /// 转移储位列号
        /// </summary>
        public int MoveToCellColumnNo { get; set; }
        /// <summary>
        /// 转移储位深度
        /// </summary>
        public int MoveToCellDepthIndex { get; set; }
        /// <summary>
        /// 返回储位Id
        /// </summary>
        public int? BackToCellId { get; set; }
        /// <summary>
        /// 返回储位编码
        /// </summary>
        public string BackToCellCode { get; set; }
        /// <summary>
        /// 返回储位名称
        /// </summary>
        public string BackToCellName { get; set; }
        /// <summary>
        /// 返回储位排号
        /// </summary>
        public int? BackToCellLineNo { get; set; }
        /// <summary>
        /// 返回储位层号
        /// </summary>
        public int? BackToCellLayerNo { get; set; }
        /// <summary>
        /// 返回储位列号
        /// </summary>
        public int? BackToCellColumnNo { get; set; }
        /// <summary>
        /// 返回储位深度
        /// </summary>
        public int? BackToCellDepthIndex { get; set; }
        /// <summary>
        /// 状态：0-转移中；1-已转移；2-返回中；3-已返回
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 转移完成时间
        /// </summary>
        public DateTime? MoveFinishedDate { get; set; }
        /// <summary>
        /// 返回完成时间
        /// </summary>
        public DateTime? BackFinishedDate { get; set; }
        public int FromCellHeightType { get; set; }
        public int MoveToCellHeightType { get; set; }
        public int? BackToCellHeightType { get; set; }
        /// <summary>
        /// 垛实际高度类型
        /// </summary>
        public int? RealHeightType { get; set; }
        public string RefCellCode { get; set; }
        public bool? IsMultPallet { get; set; }
        /// <summary>
		/// 库存
		/// </summary>
		[NotMapped]
        public TInventory FromInventory
        {
            get; set;
        }
    }
}
